import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: '/api/admin/device/getDevices',
    method: 'post',
    data
  })
}

// 导入设备
export function batchImportDevices(data) {
  return request({
    url: '/api/admin/device/batchImportDevices',
    method: 'post',
    data
  })
}

//获取设备品牌
export function getMenufacturers(data) {
  return request({
    url: '/api/admin/menufacturer/getMenufacturers',
    method: 'post',
    data
  })
}

export function updateDevice(data) {
  return request({
    url: '/api/admin/device/update_device',
    method: 'post',
    data
  })
}
